FROM python:latest
RUN pip install gpt4all -i  https://mirrors.aliyun.com/pypi/simple
RUN pip install Flask -i  https://mirrors.aliyun.com/pypi/simple
RUN pip install gunicorn -i  https://mirrors.aliyun.com/pypi/simple
COPY src/ /opt/gpt4all/src/
EXPOSE 8084
CMD ["/usr/local/bin/gunicorn","--bind=0.0.0.0:8084","main:app" ,"--chdir", "/opt/gpt4all/src/"]
